package com.toby.ioc.value;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @desc:
 * @author: toby
 * @date: 2019/7/20 20:25
 */

@Configuration
@PropertySource(value = {"classpath:person.properties"})
public class PersonConfig {
    @Bean
    public Person person() {
        return new Person();
    }
}
